Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix button template/triggers #1296

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nice3point
Copy link
Contributor

@Nice3point Nice3point commented Dec 22, 2024

The button's current Template is not compatible with its triggers.

<Trigger Property="IsEnabled" Value="False"> affects TargetName="ContentBorder" but now the BorderThickness and other properties located in a nested Border. And with this template all state triggers do nothing

This PR fixes this behavior and now the triggers work as they should work. I removed the redundant nested Border and moved all properties to the ContentBorder

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Triggers do not change the element border in any way, but must
image

Issue Number: N/A

What is the new behavior?

The triggers are working
image

@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request release labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls Changes to the appearance or logic of custom controls. PR Pull request release styles Topic is related to styles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant